const { t } = useI18n()

// 必填项
export const required = {
  required: true,
  message: t('common.required')
}

// 密码验证规则 6-16位数字和字母组合
export const passwordRule= {
  required: true,
  trigger: 'blur',
  pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?!.*(.)\1{1,})[A-Za-z\d@#$%^&+=!]{8,16}$/,
  message: t('common.passwordRule') 
}